package com.edu.compile.template.ftl.node;


import com.edu.compile.template.ftl.CommonNodeTemplateParse;

import java.util.ArrayList;
import java.util.List;

public class Calc extends CommonNodeTemplateParse {

    public Calc(String nodeId, String nodeType, String nodeName, String parentNodeId) {
        super(nodeId, nodeType, nodeName, parentNodeId);
    }

    private String sourceValue;

    private String operate;

    private List<String> args = new ArrayList<>();

    public String getSourceValue() {
        return sourceValue;
    }

    public void setSourceValue(String sourceValue) {
        this.sourceValue = sourceValue;
    }

    public List<String> getArgs() {
        return args;
    }

    public void addArg(String arg) {
        this.args.add(arg);
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }

}
